﻿using Abp.Events.Bus.Entities;

namespace AbpProjectTemplate.Components.Events.Entities
{
    /// <summary>
    /// 实体变更前事件
    /// </summary>
    public class EntityChangeEventData<TEntity> : EntityEventData<TEntity>
    {
        public TEntity OriginalEntity { get; private set; }

        public EntityChangeEventData(TEntity entity, TEntity originalEntity = default) : base(entity)
        {
            this.OriginalEntity = originalEntity;
        }
    }
}
